package com.rimi.commons;

/**
 * @
 * @author:liangLi
 * @time:2020/7/6 16:32
 */
public class CommonsDataResult  extends  CommonsResult{
    private Object data;

    public CommonsDataResult(ResultStaus staus, Object data) {
        super(staus);
        this.data = data;

    }
    public static CommonsDataResult onSuccess(Object data) {
        return new CommonsDataResult(ResultStaus.OK, data);
    }


    public static CommonsDataResult onFailed(ResultStaus staus) {
        return new CommonsDataResult(ResultStaus.OK, null);
    }


    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
